#include "../FastXML/FastXml.h"
#include "../rtCommon/C_BaseMaterial.h"

C_BaseMaterial mat;
NVSHARE::FastXml *myxml;

class MyXmlInterface : public NVSHARE::FastXmlInterface
{
	// return true to continue processing the XML document, false to skip.
	virtual bool processElement(const char	*elementName,					// name of the element
															NxI32        argc,								// number of attributes
															const char **argv,								// list of attributes.
															const char  *elementData,					// element data, null if none
															NxI32        lineno)							// line number in the source XML file
	{
		return true;
	}
};

int main(int argc, char **argv)
{

	mat.ambient(f4(1.0f, 1.0f, 0.0f, 1.0f));
	mat.serialize("..//Media//material//simplematerial.bml");

	mat.ambient(f4());
	mat.deserialize("..//Media//material//simplematerial.bml");

	//myxml = NVSHARE::createFastXml();

	//myxml->processXmlFile("..//Media//material//simple.bml", new MyXmlInterface);

	return 0;
}